﻿using System;
using Interfaces.Models;

namespace NewsDataProvider.DataContainers
{
    public class PersonDataContainer : IPerson
    {
        public Guid? Id { get; set; }
        public string Email { get; set; }
        public string Name { get; set; }
        public string Uri { get; set; }

        public bool Equals(IPerson other)
        {
            return Id.Equals(other.Id)
                   && Email.Equals(other.Email)
                   && Name.Equals(other.Name)
                   && Uri.Equals(other.Uri);
        }
    }
}
